### Godot version

4.1.1.stable

### System information

Godot v4.1.1.stable - Windows 10.0.19045 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 2070 SUPER (NVIDIA; 30.0.15.1295) - Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz (6 Threads)

### Issue description

When undocking the script editor so that it's floating, CollisionShape3D Shape Size handles stop working.

If they were visible on a Shape, they remain visible on that shape and still work for that shape; but they will not appear on any other collision object when selecting it.

If you launch the editor with the Script panel already in a floating state, no shape handles ever become visible.

If you dock the Script editor again, everything goes back to normal and works fine.

### Steps to reproduce

Create a 3D scene with some collision shapes.
Undock the Script editor

### Minimal reproduction project

N/A
}
			continue;
		}
		if (languages.has(p_resource->get_path().get_extension())) {
			se->set_syntax_highlighter(highlighter);
			highlighter_set = true;
		}
	}
	tab_container->add_child(se);
	if (p_grab_focus) {
		se->enable_editor(this);
	}
	
	
	se->set_meta("_edit_res_path", p_resource->get_path());
	se->set_tooltip_request_func(callable_mp(this, &ScriptEditor::_get_debug_tooltip));
	if (se->get_edit_menu()) {
		se->get_edit_menu()->hide();
		menu_hb->add_child(se->get_edit_menu());
		menu_hb->move_child(se->get_edit_menu(), 1);
	}
	if (p_grab_focus) {
		_go_to_tab(tab_container->get_tab_count() - 1);
		_add_recent_script(p_resource->get_path());
	}
	if (script_editor_cache->has_section(p_resource->get_path())) {
		se->set_edit_state(script_editor_cache->get_value(p_resource->get_path(), "state"));
	}
	_sort_list_on_update = true;
	_update_script_names();