Is it possible to disable Maximised on Display Border?

Hello, I would like to ask. Is it possible to disable the maximised button on the Display border (the one beside the Minimized and Close buttons)

Because when its not maximised the game looks fine, but when I maximised, the location of the elements are altered. Like this:

Not maximised:

Maximised:

I know I can make it borderless, but I still want to have the border. I just want to prevent people from being able to maximize the game. Any help is appreciated!

Uncheck Resizable in project settings under Display/Window or enable Window.unresizable in code.

okay, thank you!