Add a dimmingViewWindow property to UIApplication and use it in stepToDismissPopover

Fixes #237