Create a menu bar widget and add it to main window's layout.