### Godot version

v4.1.1.stable.official [bd6af8e0e]

### System information

Godot v4.1.1.stable - Debian GNU/Linux 12 (bookworm) 12 - Vulkan (Forward+) - integrated Intel(R) HD Graphics 5500 (BDW GT2) () - Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz (4 Threads)

### Issue description

Attempting to open a child window from a window while having the `focus_exited` signal connected to the `hide` method, crashes Godot with signal 4 (SIGILL)
I have a backtrace, though it may not really be useful, since I didn't want to make my own build of godot with debug symbols. I hope however that the MRE makes up for the lack of a proper backtrace on my side.
```
================================================================
handle_crash: Program crashed with signal 4
Engine version: Godot Engine v4.1.1.stable.official (bd6af8e0ea69167dd0627f3bd54f9105bda0f8b5)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x3bf90) [0x7f586db17f90] (??:0)
[2] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x2d5f7b6] (??:0)
[3] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x2d5fa78] (??:0)
[4] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x2dfcdf7] (??:0)
[5] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x2dfd587] (??:0)
[6] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x2dfe1b9] (??:0)
[7] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x2d98f17] (??:0)
[8] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x47d7128] (??:0)
[9] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x461cac4] (??:0)
[10] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x483b9d1] (??:0)
[11] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x2ded3de] (??:0)
[12] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x2dede9d] (??:0)
[13] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x2d365f0] (??:0)
[14] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x2d7c325] (??:0)
[15] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x2d7f9ec] (??:0)
[16] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x2d802e4] (??:0)
[17] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x2da6ca5] (??:0)
[18] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0xeb6b10] (??:0)
[19] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x45be723] (??:0)
[20] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0x45bf97e] (??:0)
[21] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0xeb71bf] (??:0)
[22] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0xe46433] (??:0)
[23] /lib/x86_64-linux-gnu/libc.so.6(+0x2718a) [0x7f586db0318a] (??:0)
[24] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7f586db03245] (??:0)
[25] /home/monix/.local/share/hourglass/versions/4.1.1/godot() [0xe777ae] (??:0)
-- END OF BACKTRACE --
================================================================
```
What I expect to happen instead:
Either the engine failing with a proper error, or hiding the window, or keeping both windows visible.

### Steps to reproduce

Download, and run the MRE
Press the Browse button in the window that appears
Crash occurs

### Minimal reproduction project

[sigill-mre.zip](https://github.com/godotengine/godot/files/12383126/sigill-mre.zip)

#ifndef _3D_DISABLED
	ADD_PROPERTY(PropertyInfo(Variant::BOOL, "audio_listener_enable_3d"), "set_as_audio_listener_3d", "is_audio_listener_3d");
#endif
	ADD_GROUP("Physics", "physics_");
	ADD_PROPERTY(PropertyInfo(Variant::BOOL, "physics_object_picking"), "set_physics_object_picking", "get_physics_object_picking");
	ADD_PROPERTY(PropertyInfo(Variant::BOOL, "physics_object_picking_sort"), "set_physics_object_picking_sort", "get_physics_object_picking_sort");
	ADD_GROUP("GUI", "gui_");
	ADD_PROPERTY(PropertyInfo(Variant::BOOL, "gui_disable_input"), "set_disable_input", "is_input_disabled");
	ADD_PROPERTY(PropertyInfo(Variant::BOOL, "gui_snap_controls_to_pixels"), "set_snap_controls_to_pixels", "is_snap_controls_to_pixels_enabled");
	ADD_PROPERTY(PropertyInfo(Variant::BOOL, "gui_embed_subwindows"), "set_embedding_subwindows", "is_embedding_subwindows");
	ADD_GROUP("SDF", "sdf_");
	ADD_PROPERTY(PropertyInfo(Variant::INT, "sdf_oversize", PROPERTY_HINT_ENUM, "100%,120%,150%,200%"), "set_sdf_oversize", "get_sdf_oversize");
	ADD_PROPERTY(PropertyInfo(Variant::INT, "sdf_scale", PROPERTY_HINT_ENUM, "100%,50%,25%"), "set_sdf_scale", "get_sdf_scale");
	ADD_GROUP("Positional Shadow Atlas", "positional_shadow_atlas_");
	ADD_PROPERTY(PropertyInfo(Variant::INT, "positional_shadow_atlas_size"), "set_positional_shadow_atlas_size", "get_positional_shadow_atlas_size");
	ADD_PROPERTY(PropertyInfo(Variant::BOOL, "positional_shadow_atlas_16_bits"), "set_positional_shadow_atlas_16_bits", "get_positional_shadow_atlas_16_bits");
	ADD_PROPERTYI(PropertyInfo(Variant::INT, "positional_shadow_atlas_quad_0", PROPERTY_HINT_ENUM, "Disabled,1 Shadow,4 Shadows,16 Shadows,64 Shadows,256 Shadows,1024 Shadows"), "set_positional_shadow_atlas_quadrant_subdiv", "get_positional_shadow_atlas_quadrant_subdiv", 0);
	ADD_PROPERTYI(PropertyInfo(Variant::INT, "positional_shadow_atlas_quad_1", PROPERTY_HINT_ENUM, "Disabled,1 Shadow,4 Shadows,16 Shadows,64 Shadows,256 Shadows,1024 Shadows"), "set_positional_shadow_atlas_quadrant_subdiv", "get_positional_shadow_atlas_quadrant_subdiv", 1);
	ADD_PROPERTYI(PropertyInfo(Variant::INT, "positional_shadow_atlas_quad_2", PROPERTY_HINT_ENUM, "Disabled,1 Shadow,4 Shadows,16 Shadows,64 Shadows,256 Shadows,1024 Shadows"), "set_positional_shadow_atlas_quadrant_subdiv", "get_positional_shadow_atlas_quadrant_subdiv", 2);
	ADD_PROPERTYI(PropertyInfo(Variant::INT, "positional_shadow_atlas_quad_3", PROPERTY_HINT_ENUM, "Disabled,1 Shadow,4 Shadows,16 Shadows,64 Shadows,256 Shadows,1024 Shadows"), "set_positional_shadow_atlas_quadrant_subdiv", "get_positional_shadow_atlas_quadrant_subdiv", 3);
	ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM2D, "canvas_transform", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NONE), "set_canvas_transform", "get_canvas_transform");
	ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM2D, "global_canvas_transform", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NONE), "set_global_canvas_transform", "get_global_canvas_transform");
	ADD_PROPERTY(PropertyInfo(Variant::INT, "canvas_cull_mask", PROPERTY_HINT_LAYERS_2D_RENDER), "set_canvas_cull_mask", "get_canvas_cull_mask");
	ADD_SIGNAL(MethodInfo("size_changed"));
	ADD_SIGNAL(MethodInfo("gui_focus_changed", PropertyInfo(Variant::OBJECT, "node", PROPERTY_HINT_RESOURCE_TYPE, "Control")));
	BIND_ENUM_CONSTANT(SHADOW_ATLAS_QUADRANT_SUBDIV_DISABLED);
	BIND_ENUM_CONSTANT(SHADOW_ATLAS_QUADRANT_SUBDIV_1);
	BIND_ENUM_CONSTANT(SHADOW_ATLAS_QUADRANT_SUBDIV_4);
	BIND_ENUM_CONSTANT(SHADOW_ATLAS_QUADRANT_SUBDIV_16);
	BIND_ENUM_CONSTANT(SHADOW_ATLAS_QUADRANT_SUBDIV_64);