[OE-3363] Constrain the application preview dialog to the window viewport