How to reproduce:
1. Open the attached Project "ContextTest" and load Scene "SampleScene"
2. Select the "testObj" GameObject in the Hierarchy
3. In the Inspector, right-click the "Right Click Me" UnityEvent variable in the "Test" Component
Expected result: a context menu shows up
Actual result: no context menu shows up
Reproducible with: 2022.2.0a9, 2022.3.16f1, 2023.2.4f1, 2023.3.0a19
Not reproducible with: 2021.3.33f1, 2022.2.0a8