Can't grab focus of parent window, if I already have focus of his child embedded window

Godot Version

4.2.1

Question

I have main window and embedded window.

Window that has focus will handle input events, window that doesn’t have focus will not receive input events at all.

I can select focused window if I click on it with left mouse button.

But I want to grab focus from one window to another through script.

To do it I need to write something like this:
$Window.grab_focus() - to grab window node focus
get_tree().get_root().grab_focus() - to grab focus of root window

Here i have a problem.
I can’t grab focus of parent window if i have focus of his child embedded window. But if i want to grab focus of child embedded window from parent window it works nice.

Have you try to use release_focus() ?