Hide viewport’s UI

There’s a command Hide Viewport UI that you can set a keyboard shortcut to: