### 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 (p_gutter != connection_gutter) {
		return;
	}
	Dictionary meta = code_editor->get_text_editor()->get_line_gutter_metadata(p_line, p_gutter);
	String type = meta.get("type", "");
	if (type.is_empty()) {
		return;
	}
	
	String method = meta.get("method", "");
	if (method.is_empty()) {
		return;
	}
	if (type == "connection") {
		Node *base = get_tree()->get_edited_scene_root();
		if (!base) {
			return;
		}
		Vector<Node *> nodes = _find_all_node_for_script(base, base, script);
		connection_info_dialog->popup_connections(method, nodes);
	} else if (type == "inherits") {
		String base_class_raw = meta["base_class"];
		PackedStringArray base_class_split = base_class_raw.split(":", true, 1);
		if (base_class_split[0] == "script") {
			
			Ref<Script> base_script = ResourceLoader::load(base_class_split[1]);
			ERR_FAIL_COND(!base_script.is_valid());
			emit_signal(SNAME("go_to_method"), base_script, method);
		} else if (base_class_split[0] == "builtin") {