Godot 4's window class is cross platform, or else the editor itself would be windows only (unlike other engines the classes that make up the Godot editor are also given to the user)