Make native menus work with multiple windows.