Add the possibility to force the window to be attached to the menu bar

I added an attribute to the window class in order to have the possibility to force the window to be attached to the menu bar.