### 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)

GLuint vertex_array = 0;
		GLuint index_buffer = 0;
		int sdf_point_count = 0;
		int sdf_index_count = 0;
		GLuint sdf_vertex_buffer = 0;
		GLuint sdf_vertex_array = 0;
		GLuint sdf_index_buffer = 0;
		bool sdf_is_lines = false;
	};
	RID_Owner<OccluderPolygon> occluder_polygon_owner;
	void _update_shadow_atlas();
	struct {
		CanvasOcclusionShaderGLES3 shader;
		RID shader_version;
	} shadow_render;
	struct LightUniform {
		float matrix[8]; 
		float shadow_matrix[8]; 
		float color[4];
		uint8_t shadow_color[4];
		uint32_t flags; 
		float shadow_pixel_size;
		float height;
		float position[2];
		float shadow_z_far_inv;
		float shadow_y_ofs;
		float atlas_rect[4];
	};
public:
	enum {