Separated UIWindow initialization from native window creation so that we can use NSPopover