Change fullscreen mode

Im working on a windows build, and Im trying to provide the end user a way to select between two different fullscreen modes. The default will be the “fullscreen window” which covers the entirety of the screen so you dont get any window borders nor windows taskbar. I want though to give the possibility to play in a fullscreen window where windows own taskbar is visible. I think this option is the fullscreen mode “maximized window”.

I have tried

 Screen.fullScreenMode = FullScreenMode.MaximizedWindow

but it doesnt seem to change the fullscreen mode. Any searches I did to find what Im missing only return ways to enter or exit fullscreenmode, but no replies on how to change the fullscreenmode.

Any hints?

in this case only the window.

Screen.fullScreenMode = FullScreenMode.Windowed;