### 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
Dictionary d = p_data;
	CodeEdit *te = code_editor->get_text_editor();
	Point2i pos = te->get_line_column_at_pos(p_point);
	int row = pos.y;
	int col = pos.x;
	if (d.has("type") && String(d["type"]) == "resource") {
		te->remove_secondary_carets();
		Ref<Resource> res = d["resource"];
		if (!res.is_valid()) {
			return;
		}
		if (res->get_path().is_resource_file()) {
			EditorNode::get_singleton()->show_warning(TTR("Only resources from filesystem can be dropped."));
			return;
		}
		te->set_caret_line(row);
		te->set_caret_column(col);
		te->insert_text_at_caret(res->get_path());
		te->grab_focus();
	}
	if (d.has("type") && (String(d["type"]) == "files" || String(d["type"]) == "files_and_dirs")) {
		te->remove_secondary_carets();
		Array files = d["files"];
		String text_to_drop;
		bool preload = Input::get_singleton()->is_key_pressed(Key::CTRL);
		for (int i = 0; i < files.size(); i++) {
			if (i > 0) {
				text_to_drop += ", ";
			}
			if (preload) {