How to reproduce:
1. Open the “memory_leak_repro“ project
2. Open the SampleScene
3. Open the Tile Palette window from Window → 2D → Tile Palette
4. Interact with the Tile Palette window by selecting a section of the grid
5. Open a different window so that the Editor is running in the background
6. Open the Task Manager and observe the Memory usage by the Editor
Expected result: Memory usage stays around the same value
Actual result: Memory usage increases
Reproducible with: 2022.2.0a8, 2023.1.13f1
Not reproducible with: 2021.3.30f1, 2022.2.0a7, 2022.3.10f1, 2023.2.0b10, 2023.3.0a5
Fixed in: 2023.1.14f1
Reproducible on: Windows 10
Not reproducible on: No other environment tested