add wrapped window to canvas and set canvas as central widget in viewer