When DisplayServer.window_set_position and DisplayServer.window_set_size run successively, the bottom border and the right border of the window are flickering

Godot Version

Godot Engine v4.2.2.stable.official.15073afe3

Question

Then native border of Window on wni10 is hidden after setting on purpose. The border shown on screen comes out from the shader material of a SubViewportContainer. I found that, when DisplayServer.window_set_position and DisplayServer.window_set_size run successively, the bottom border and the right border of the window are flickering. I guess the reason is that I call methods about OS twice in a short time.
There’s an idea that may solve this problem. The idea is, stop the window refreshing when I’m calling the OS methods, until I tell it that it can be refreshed. But I don’t find a solution about this.
Seting the position and size in one function call can also solve this problem, but I haven’t found this kind of method in godot docs.