How to reproduce:
1. Create and open a new project
2. Create a folder and a script in the Project tab (you might have to reload the domain as well)
3. Select "Stop playing and recompile" option in General Preferences
4. Enter Play Mode
5. Cut (CTRL + X) the script and paste it inside the folder in the Project tab
6. Observe the Editor
Expected result: The Editor does not hang, and the script is pasted into the folder
Actual result: The Editor hangs
Reproducible in: 2022.3.10f1, 2022.3.61f1, 6000.0.48f1, 6000.1.1f1, 6000.2.0a10
Not reproducible in: 2021.3.51f1, 2022.3.9f1
Reproduced on: Windows 11 Pro (24H2)
Not reproduced on: macOS 15.3.2, No other environment tested
Note: Before the regressed version, the Editor exited Play Mode before pasting the script to another folder