Add support for new window menu item.