### Godot version

4.1.2

### System information

Windows 10 - Godot v4.1.2 - Forward+

### Issue description

You can't drag and drop nodes that are in a scene, but editable as editable children cannot be dragged and dropped into the assign boxes created by "@export var".

### Steps to reproduce

create a "new scene" and add a new sub node.
go back into the main scene and add that "new scene "to it
then create a new node in the main scene and attatch a script.
in the script write @export var x: Node (or whatever type of node it was)
then select editable children on the "new scene"
try and drag and drop the sub node in the "main scene" into the assign box
it doesn't work
however clicking assign and selecting the sub-node does work

### Minimal reproduction project

[sdfdsf.zip](https://github.com/godotengine/godot/files/13198455/sdfdsf.zip)

if (!script_typed.is_null()) {
			emit_signal(SNAME("open_script"), script_typed);
		}
	} else if (p_id == BUTTON_VISIBILITY) {
		undo_redo->create_action(TTR("Toggle Visible"));
		_toggle_visible(n);
		List<Node *> selection = editor_selection->get_selected_node_list();
		if (selection.size() > 1 && selection.find(n) != nullptr) {
			for (Node *nv : selection) {
				ERR_FAIL_NULL(nv);
				if (nv == n) {
					continue;
				}
				_toggle_visible(nv);
			}
		}
		undo_redo->commit_action();
	} else if (p_id == BUTTON_LOCK) {
		undo_redo->create_action(TTR("Unlock Node"));
		if (n->is_class("CanvasItem") || n->is_class("Node3D")) {
			undo_redo->add_do_method(n, "remove_meta", "_edit_lock_");
			undo_redo->add_undo_method(n, "set_meta", "_edit_lock_", true);
			undo_redo->add_do_method(this, "_update_tree");
			undo_redo->add_undo_method(this, "_update_tree");
			undo_redo->add_do_method(this, "emit_signal", "node_changed");
			undo_redo->add_undo_method(this, "emit_signal", "node_changed");
		}
		undo_redo->commit_action();
	} else if (p_id == BUTTON_PIN) {
		if (n->is_class("AnimationMixer")) {