### Godot version

4.0.2

### System information

Windows 10,Radeon RX 550/550 Series,23.3.2,Vulkan

### Issue description

After Switching to the animations tabs and pressing the key symbol because I wanted to know what it does, Godot crashes

### Steps to reproduce

Go into a project 
Switch to the Animations Tab, make sure no animation is active 
And then press on the key symbol

here is a video demonstrating the bug

https://user-images.githubusercontent.com/59411880/233839816-5489899e-828f-4ac9-9de3-7914f727f754.mp4



### Minimal reproduction project

The File
[package.zip](https://github.com/godotengine/godot/files/11303712/package.zip)

if (is_alt && !_only_packed_scenes_selected()) {
		_show_resource_type_selector();
	} else {
		_perform_drop_data();
	}
}
Node *CanvasItemEditorViewport::_make_texture_node_type(String texture_node_type) {
	Node *node = nullptr;
	if (texture_node_type == "Sprite2D") {
		node = memnew(Sprite2D);
	} else if (texture_node_type == "PointLight2D") {
		node = memnew(PointLight2D);
	} else if (texture_node_type == "CPUParticles2D") {
		node = memnew(CPUParticles2D);
	} else if (texture_node_type == "GPUParticles2D") {
		node = memnew(GPUParticles2D);
	} else if (texture_node_type == "Polygon2D") {
		node = memnew(Polygon2D);
	} else if (texture_node_type == "TouchScreenButton") {
		node = memnew(TouchScreenButton);
	} else if (texture_node_type == "TextureRect") {
		node = memnew(TextureRect);
	} else if (texture_node_type == "TextureButton") {
		node = memnew(TextureButton);
	} else if (texture_node_type == "NinePatchRect") {
		node = memnew(NinePatchRect);
	}
	return node;
}
void CanvasItemEditorViewport::_update_theme() {