Window moving mechanic

Godot Version



I’ve made a small game in this 400x400 pixels window area on the center of the screen, but that has other features outside this area. I am trying the make it stay in the middle when I am moving the window, kind of like the game WindowKill.

Doing this makes the game glitching and I want a smooth movement, can I turn on some kind of setting to solve this?
Another solution might be having the game’s position relative to the screen and the window acting like the part where I can see.