Reproduction steps:
1. Open the user attached project "mctv_drag_bug.zip"
2. Open MCTVBUG >TEST window
3. Select an item and drag it to the bottom of the window
4. Drag the cursor towards the bottom edge of the window
5. Repeat the action a few times
Expected result: The item is dragged to the bottom of the window
Actual result: Crash
Reproduced with: 2022.2.20f1, 2023.1.0b17, 2023.2.0a15
Could not test with: 2020.3.48f1, 2021.3.25f1 (due to errors)
Reproducible on: Windows 10
Not reproducible on: macOS 10.15.7 (Intel)
First few stack frames:
at (wrapper managed-to-native) UnityEditor.EditorApplication.get_timeSinceStartup()
at UnityEditor.RetainedMode+<>c.<.cctor>b__0_0 () [0x00000] in <f834856cb2fd450cb4ed6d9dc5da3820>:0
at UnityEngine.UIElements.Panel.TimeSinceStartupMs () [0x0000f] in <b6b89517bc264375b4b909c52b211f2d>:0
at UnityEngine.UIElements.EventBase.LocalInit () [0x00001] in <b6b89517bc264375b4b909c52b211f2d>:0
at UnityEngine.UIElements.EventBase.Init () [0x00001] in <b6b89517bc264375b4b909c52b211f2d>:0
Note: Crash happens sometimes when you release the item when dragging, sometimes without releasing.