How to reproduce:
1. Open the attached “IN-139204_ping” project
2. Open the “SampleScene” Scene
3. Enter Play mode
4. Click on the Log message containing this text: “Hierarchy ping test: gameObject as context”
5. Notice how the “LogUI” GameObject gets pinged in the Hierarchy window
6. Click on the Log message containing this text: “Hierarchy ping test: this as context”
7. Observe the Hierarchy window
Actual result: The “LogUI” GameObject does not get pinged
Expected result: The “LogUI” GameObject gets pinged
Reproducible with: 6000.3.0a2, 6000.3.13f1, 6000.4.2f1, 6000.5.0b2, 6000.6.0a2
Could not test with: 6000.0.72f1 (The new Hierarchy window was introduced in Unity Editor version 6000.3.0a2)
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Note: Clicking on either one of the Logs pings the “LogUI” GameObject when using the old Hierarchy window