How to reproduce:
1. Open the attached project "UnitySearchBug.zip"
2. Open Edit>Search All...
3. Add a new query block "Reference>Referencing Game Object"
4. Drag and drop any GameObject from the Hierarchy window into the GameObject property field in the Search window
Expected results: The property field is changed
Actual results: The property field does not change
Reproducible with: 2022.3.15f1, 2023.2.0a5
Not reproducible with: 2023.2.0a6, 2023.2.3f1, 2023.3.0a17
Could not test with: 2021.3.33f1 (no Query Builder Mode)
Reproducible on: Windows 11 22H2
Not reproducible on: No other environment tested