### 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_line.get_type() == Variant::INT) {
		code_editor->get_text_editor()->remove_secondary_carets();
		code_editor->get_text_editor()->set_caret_line(p_line.operator int64_t());
	}
}
void ScriptTextEditor::reload_text() {
	ERR_FAIL_COND(script.is_null());
	CodeEdit *te = code_editor->get_text_editor();
	int column = te->get_caret_column();
	int row = te->get_caret_line();
	int h = te->get_h_scroll();
	int v = te->get_v_scroll();
	te->set_text(script->get_source_code());
	te->set_caret_line(row);
	te->set_caret_column(column);
	te->set_h_scroll(h);
	te->set_v_scroll(v);
	te->tag_saved_version();
	code_editor->update_line_and_column();
	_validate_script();
}
void ScriptTextEditor::add_callback(const String &p_function, PackedStringArray p_args) {