### Godot version

4.0beta14

### System information

windows 10, gles 3, nvidia graphics

### Issue description

on beta 14, you cannot drag anymore a node from the scene tree to the script editor to get the node path or the ```@onready``` var snippet

### Steps to reproduce

Using beta 14, try to drag a node from the tree inside the script editor and see the arrow cursor turn into a circular white and red stop sign icon.

Note that this happens even if the script belongs to the currently opened scene.

### Minimal reproduction project

N/A
if (get_parent_control()) {
		String icon_name = script->get_class();
		if (script->is_built_in()) {
			icon_name += "Internal";
		}
		if (get_parent_control()->has_theme_icon(icon_name, SNAME("EditorIcons"))) {
			return get_parent_control()->get_theme_icon(icon_name, SNAME("EditorIcons"));
		} else if (get_parent_control()->has_theme_icon(script->get_class(), SNAME("EditorIcons"))) {
			return get_parent_control()->get_theme_icon(script->get_class(), SNAME("EditorIcons"));
		}
	}
	return Ref<Texture2D>();
}
void ScriptTextEditor::_validate_script() {