Backport to 23.3 is not needed as the changes has already land before branch off.
How to reproduce:
1. Open the user-attached project
2. Open any Sprite via the Sprite Editor
3. Make any changes to the Sprite
4. Open any Script and make any changes (To cause Recompilation)
5. Observe the Sprite Editor
Expected result: Recompilation does not revert unsaved changes
Actual result: Recompilation reverts any changes made in the Sprite Editor