How to reproduce:
1. Open the attached “Hierarchy test” project
2. Open the “SampleScene” scene
3. Open the Game view
4. Undock the Hierarchy
5. Focus on the Game view (or any other window than Scene View and Hierarchy)
6. Select the "Cube" GameObject in the Hierarchy
7. In the main menu bar, go to “Edit” → “Duplicate”
8. Observe the Hierarchy window
Expected result: The cube duplicates
Actual result: The cube does not duplicate
Reproducible with: 2020.3.37f1, 2021.3.6f1, 2022.1.10f1, 2022.2.0b2, 2023.1.0a4
Reproducible on: Windows 10
Not reproducible on: macOS Monterey 12.0.1
Note: Other “Edit” options, i.e., “Delete”, don’t work either