### Godot version

v4.2.rc.custom_build [702227129]

### System information

Godot v4.2.rc (702227129) - Debian GNU/Linux trixie/sid trixie - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 6GB (nvidia) - AMD Ryzen 5 1600 Six-Core Processor (12 Threads)

### Issue description

Found a consistent crash when calling `hide()` from `_notification()`.
It does not happen if the call is deferred.

### Steps to reproduce

The `hide_test.gd` script has a boolean `cause_crash`. If it is true, hovering the mouse over the label crashes without an error in the Godot Editor Console. If it's false it hides the label as expected.

### Minimal reproduction project

[hide_crash.zip](https://github.com/godotengine/godot/files/13452818/hide_crash.zip)

return false;
	}
	Transform2D window_ofs;
	window_ofs.set_origin(-gui.subwindow_focused->get_position());
	Ref<InputEvent> ev = p_event->xformed_by(window_ofs);
	gui.subwindow_focused->_window_input(ev);
	return true;
}
void Viewport::_update_mouse_over() {
	
	
	if (is_attached_in_viewport()) {
		
		return;
	}
	if (get_tree()->get_root()->is_embedding_subwindows() || is_sub_viewport()) {
		
		_update_mouse_over(gui.last_mouse_pos);
	} else {
		
		Window *receiving_window = get_tree()->get_root()->gui.windowmanager_window_over;
		if (!receiving_window) {
			return;
		}
		Vector2 pos = DisplayServer::get_singleton()->mouse_get_position() - receiving_window->get_position();
		pos = receiving_window->get_final_transform().affine_inverse().xform(pos);
		receiving_window->_update_mouse_over(pos);
	}
}
void Viewport::_update_mouse_over(Vector2 p_pos) {