Functions used when creating a new window.
Create all the possible actions.
Create the whole menubar, based on actions.
Create the various toolbars.
Create all the widgets and dockwidgets. It also creates actions to toggle views of dockwidgets in dockwidgets.