copying window and its contents from drawing to drawing