Any solutions to fix "maximized windowed" mode?

Is there a solution to fix the “maximized window” mode bug for Unity 2019 version?

I tested a project in one of the versions of 2023 that fixes this specific bug running in “maximized window” mode and it works as it should but apparently this setting is bugged in all previous versions with the program just going straight to fullscreen mode instead when it’s set to “maximized window”.

I am trying to run an older project developed in one of the 2019 versions and am trying to avoid upgrading all the way 2023 for this bug fix so does anyone have a solution for this? A script or line of code I can put in my project that will fix this?