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

BIND_ENUM_CONSTANT(ENV_TONE_MAPPER_LINEAR);
	BIND_ENUM_CONSTANT(ENV_TONE_MAPPER_REINHARD);
	BIND_ENUM_CONSTANT(ENV_TONE_MAPPER_FILMIC);
	BIND_ENUM_CONSTANT(ENV_TONE_MAPPER_ACES);
	BIND_ENUM_CONSTANT(ENV_SSR_ROUGHNESS_QUALITY_DISABLED);
	BIND_ENUM_CONSTANT(ENV_SSR_ROUGHNESS_QUALITY_LOW);
	BIND_ENUM_CONSTANT(ENV_SSR_ROUGHNESS_QUALITY_MEDIUM);
	BIND_ENUM_CONSTANT(ENV_SSR_ROUGHNESS_QUALITY_HIGH);
	BIND_ENUM_CONSTANT(ENV_SSAO_QUALITY_VERY_LOW);
	BIND_ENUM_CONSTANT(ENV_SSAO_QUALITY_LOW);
	BIND_ENUM_CONSTANT(ENV_SSAO_QUALITY_MEDIUM);
	BIND_ENUM_CONSTANT(ENV_SSAO_QUALITY_HIGH);
	BIND_ENUM_CONSTANT(ENV_SSAO_QUALITY_ULTRA);
	BIND_ENUM_CONSTANT(ENV_SSIL_QUALITY_VERY_LOW);
	BIND_ENUM_CONSTANT(ENV_SSIL_QUALITY_LOW);
	BIND_ENUM_CONSTANT(ENV_SSIL_QUALITY_MEDIUM);
	BIND_ENUM_CONSTANT(ENV_SSIL_QUALITY_HIGH);
	BIND_ENUM_CONSTANT(ENV_SSIL_QUALITY_ULTRA);
	BIND_ENUM_CONSTANT(ENV_SDFGI_Y_SCALE_50_PERCENT);
	BIND_ENUM_CONSTANT(ENV_SDFGI_Y_SCALE_75_PERCENT);
	BIND_ENUM_CONSTANT(ENV_SDFGI_Y_SCALE_100_PERCENT);
	BIND_ENUM_CONSTANT(ENV_SDFGI_RAY_COUNT_4);
	BIND_ENUM_CONSTANT(ENV_SDFGI_RAY_COUNT_8);
	BIND_ENUM_CONSTANT(ENV_SDFGI_RAY_COUNT_16);
	BIND_ENUM_CONSTANT(ENV_SDFGI_RAY_COUNT_32);
	BIND_ENUM_CONSTANT(ENV_SDFGI_RAY_COUNT_64);
	BIND_ENUM_CONSTANT(ENV_SDFGI_RAY_COUNT_96);
	BIND_ENUM_CONSTANT(ENV_SDFGI_RAY_COUNT_128);
	BIND_ENUM_CONSTANT(ENV_SDFGI_RAY_COUNT_MAX);
	BIND_ENUM_CONSTANT(ENV_SDFGI_CONVERGE_IN_5_FRAMES);