How to reproduce:
1. Open the user attached “My Project3.zip” project
2. Add a UI TextMeshPro Dropdown to the Hierarchy
3. Refuse to import the TextMeshPro package a few times
4. With the TextMeshPro import prompt visible undo the adding of the Dropdown
Reproducible with: 2023.2.0a14, 2023.2.0a22
Not reproducible with: 2021.3.28f1, 2022.3.4f1, 2023.1.3f1, 2023.2.0a13
Reproduced on: Windows 10 (Intel)
First lines of stack trace:
0x00007FFFBEFAB173 (Unity) DestroyOrphanedChildrenAndComponents
0x00007FFFBEFA613A (Unity) StructureUndoBase::ApplyInternal
0x00007FFFBEF93C70 (Unity) ObjectUndo::ApplyUndo
0x00007FFFBEFA69ED (Unity) UndoManager::ApplyUndo
0x00007FFFBEFB8905 (Unity) UndoManager::Undo