Very small window and incorrect window size in Window node

When playing a scene, the window is very small despite the size in the node being fairly big.
On the screenshot below you can see a very small window titled “Grim (DEBUG)” that according to the node is 1920x1080, but on a 4k monitor it looks way smaller. I need to set it to something around 7640x4115 to make it cover the whole 4k screen.
Does anyone know how to resolve this issue?

Node size doesn’t matter, you need to change the screen size in the project settings

I think there was some issue with windows resolutions and scaling. After restarting PC it fixed itself without changing anything in the project.