### Godot version

4.0.beta15

### System information

windows 10, nvidia graphics, opengl backend

### Issue description

When using a TileSetAtlasSource on a TileSet with dimensions greater than 799x799 and selecting the Tiles tab in the TileSet editor, all tabs in the right editor panel disappear.

This is likely a regression of https://github.com/godotengine/godot/issues/67942

### Steps to reproduce

see attached video:

https://user-images.githubusercontent.com/5783414/215139823-f78e94c5-5199-452e-b601-76ec0f680748.mp4


### Minimal reproduction project

[LikelyRegressionOf67942.zip](https://github.com/godotengine/godot/files/10520933/LikelyRegressionOf67942.zip)

};
			
			struct {
				float points[6]; 
				float uvs[6]; 
				uint32_t colors[6]; 
			};
		};
		uint32_t flags;
		uint32_t specular_shininess;
		uint32_t lights[4];
	};
	struct Data {
		GLuint canvas_quad_vertices;
		GLuint canvas_quad_array;
		GLuint indexed_quad_buffer;
		GLuint indexed_quad_array;
		GLuint particle_quad_vertices;
		GLuint particle_quad_array;
		GLuint ninepatch_vertices;
		GLuint ninepatch_elements;
		RID canvas_shader_default_version;
		uint32_t max_lights_per_render = 256;
		uint32_t max_lights_per_item = 16;
		uint32_t max_instances_per_batch = 512;
		uint32_t max_instances_per_buffer = 16384;
		uint32_t max_instance_buffer_size = 16384 * 128;
	} data;
	struct Batch {