### Godot version

v4.2.dev2.mono.official 

### System information

Godot v4.2.dev2.mono - Windows 10.0.22621 - GLES3 (Compatibility) - NVIDIA GeForce RTX 3060 (NVIDIA; 31.0.15.3179) - Intel(R) Core(TM) i7-10700F CPU @ 2.90GHz (16 Threads)

### Issue description

When making a change on a TileSet, the TileSet tab will close, so you have to reopen it to continue doing what you want to do.

https://github.com/godotengine/godot/assets/88297220/b9f727d8-3ced-404a-9eb0-06f22c66bb99



### Steps to reproduce

1. Add a TileMap
2. Assign a TileSet to the TileMap
3. Add a new layer or make a change to the TileSet.

### Minimal reproduction project

N/A
List<QueueItem> pattern_preview_queue;
	Mutex pattern_preview_mutex;
	Semaphore pattern_preview_sem;
	Thread pattern_preview_thread;
	SafeFlag pattern_thread_exit;
	SafeFlag pattern_thread_exited;
	Semaphore pattern_preview_done;
	void _preview_frame_started();
	void _pattern_preview_done();
	static void _thread_func(void *ud);
	void _thread();
public:
	_FORCE_INLINE_ static TilesEditorUtils *get_singleton() { return singleton; }
	
	void queue_pattern_preview(Ref<TileSet> p_tile_set, Ref<TileMapPattern> p_pattern, Callable p_callback);
	
	void set_sources_lists_current(int p_current);
	void synchronize_sources_list(Object *p_current_list, Object *p_current_sort_button);
	void set_atlas_view_transform(float p_zoom, Vector2 p_scroll);
	void synchronize_atlas_view(Object *p_current);
	
	void set_sorting_option(int p_option);
	List<int> get_sorted_sources(const Ref<TileSet> p_tile_set) const;
	
	void display_tile_set_editor_panel();
	static void draw_selection_rect(CanvasItem *p_ci, const Rect2 &p_rect, const Color &p_color = Color(1.0, 1.0, 1.0));
	TilesEditorUtils();
	~TilesEditorUtils();
};
class TileMapEditorPlugin : public EditorPlugin {