Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the Test Runner window (WIndow > General > Test Runner)
3. Press the “Run All” button in the Test Runner window
4. Open and observe “Editor.log” file
Expected result: The log does not show any errors
Actual result: The log shows GTK errors
Reproducible with: 2022.3.7f1, 2022.3.14f1, 2023.2.2f1, 2023.3.0a15
Not reproducible with: 2021.3.33f1, 2022.3.6f1
Reproducible on: Ubuntu 22.04
Not reproducible on: WIndows 10