### 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.
List<StringName> complete_type_list;
	ClassDB::get_class_list(&complete_type_list);
	ScriptServer::get_global_class_list(&complete_type_list);
	EditorData &ed = EditorNode::get_editor_data();
	for (List<StringName>::Element *I = complete_type_list.front(); I; I = I->next()) {
		String type = I->get();
		if (!_should_hide_type(type)) {
			type_list.push_back(type);
			if (!ed.get_custom_types().has(type)) {
				continue;
			}
			const Vector<EditorData::CustomType> &ct = ed.get_custom_types()[type];
			for (int i = 0; i < ct.size(); i++) {
				custom_type_parents[ct[i].name] = type;
				custom_type_indices[ct[i].name] = i;
				type_list.push_back(ct[i].name);
			}
		}
	}
	type_list.sort_custom<StringName::AlphCompare>();
}
bool CreateDialog::_is_type_preferred(const String &p_type) const {