You don't need to do anything.
An application's main menu is already global—it's part of the application, not of any individual window. The same menus will appear regardless of which window is active, by default.
You would have to put in some work if you wanted to go the other way and have different menus depending on which window is active.