There is a potential this could be linux related, as I am playing on Linux, but the fact that I still have the issue when running it through Proton makes me think Windows will have the same issue.
When shifting the game window to only covor half the screen so I can multitask, the game doesn't respond to the viewport difference like it does on the browser version. Instead, as soon as I click away from the game, the inner content seems to force the game window to increase, making it full screen again.
I only got the screenshot by setting it to a timer because interacting with the screenshot app was reverting it to full screen too lol
Edit: this is in fact Linux related, and doesn't seem to occur on Windows.