Different Menu bar for different windows

A colleague is developing a Windows program and I am developing the same thing for MacOS. In the Windows program, there is the option to open a new window. This window has its own menu bar at the top of the window.

Can I have a separate menu bar per window? I am trying to think of a Mac app that does the same but can't find one, so I assume it is not the way it is done.

To explain a bit, the user starts the Mac app and select from the main menu, open a text editor window. I want the menu to be different between the first window and the newly opened one. So the text editor menu would have items specific to the text editor.

I am using Swift and storyboards, not SwiftUI (yet).
I suspect it is bad practice to reply to your own question but I am still stumped.

So I guess this is either a really easy question that I should know the answer to or it is not possible.


Different Menu bar for different windows
 
 
Q