Show the text editor menu on macOS
The only problem was that the editor window had an owner; if it doesn't, Qt uses the menubar correctly.
BUG:391600