This version of Unity is unsupported.

FullScreenMode.MaximizedWindow

Description

Set the app window to the operating system’s definition of “maximized”. This means a full-screen window with a hidden menu bar and dock on macOS. This option is only supported on macOS; on other platforms, the setting falls back to FullScreenMode.FullScreenWindow.