Support autohiding menu bar

Adds a config setting to auto hide the menu bar on Linux and Windows.

Closes #2914