### 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
text_edit->set_line_gutter_clickable(line, connection_gutter, true);
						methods_found.insert(method);
						break;
					}
				}
				if (line >= 0) {
					continue;
				}
				
				bool found_inherited_function = false;
				Ref<Script> inherited_script = script->get_base_script();
				while (!inherited_script.is_null()) {
					if (inherited_script->has_method(method)) {
						found_inherited_function = true;
						break;
					}
					inherited_script = inherited_script->get_base_script();
				}
				if (!found_inherited_function) {
					missing_connections.push_back(connection);
				}
			}
		}
	}
	
	methods_found.clear();
	for (int i = 0; i < functions.size(); i++) {
		StringName name = StringName(functions[i].get_slice(":", 0));
		if (methods_found.has(name)) {
			continue;