Need help, visual glitch of windows tool bar and dark screen. Using Transparent and passthrough windows.

Godot 4.4.1 stable mono

I’m trying to make a desktop pet. Using Transparency and Borderless window. and mouse_passthrough_polygon for the pet sprite.

every thing works well, but after some time, suddenly the screen gets transparent dark/white and the toolbar of Windows10 glitches out. And it seems that the mouse_passthrough stops working too.

there are no errors on the output and the debugger.

–What I use:
func _ready() → void:
get_window().mouse_passthrough=false
get_window().transparent_bg=true
get_window().transparent=true
ButtomColl.position.y=DisplayServer.screen_get_usable_rect().size.y
RightColl.position.x=DisplayServer.screen_get_size().x

func _physics_process(delta: float) → void:
get_window().mouse_passthrough=false
get_window().mouse_passthrough_polygon=pol.polygon
get_window().transparent=true