### Godot version

v4.0.beta15.official [4fa6edc88]

### System information

Windows10, Forward+, AMD Ryzen 5 5600H with Radeon Graphics

### Issue description

Users can only add Control and Node2D nodes on the Create CanvasItem window, but there are Editor nodes not filtered out. 


### Steps to reproduce

Right-clicking on the 2D viewport. Select the add node feature. A Create CanvasItem window shows. Users can only add Control and Node2D nodes, but there are Editor nodes not filtered out.
![图片](https://user-images.githubusercontent.com/80319225/214565483-98717565-c2e5-41d8-83a0-a985a96fc595.png)

### Minimal reproduction project

No project is needed.
Dictionary d = p_data;
	TreeItem *ti = favorites->get_item_at_position(p_point);
	if (!ti) {
		return;
	}
	String drop_at = ti->get_text(0);
	int ds = favorites->get_drop_section_at_position(p_point);
	int drop_idx = favorite_list.find(drop_at);
	if (drop_idx < 0) {
		return;
	}
	String type = d["class"];
	int from_idx = favorite_list.find(type);
	if (from_idx < 0) {
		return;
	}
	if (drop_idx == from_idx) {
		ds = -1; 
	} else if (drop_idx > from_idx) {
		drop_idx--;
	}
	favorite_list.remove_at(from_idx);
	if (ds < 0) {
		favorite_list.insert(drop_idx, type);
	} else {
		if (drop_idx >= favorite_list.size() - 1) {
			favorite_list.push_back(type);
		} else {