How to reproduce:
1. Open the “Details“ tab of the Task Manager
2. Enable the “GDI objects“ column by right-mouse-clicking any one of the column headers > “Select columns“ > Check “GDI objects“ option
3. Open the “TestDisplayDialog.zip“ project
4. Click on “Test > Display Dialog” and close the poped-up window
5. Observe the Task Manager
Expected result: GDI object count returns to its previous count
Actual result: GDI object count increases by 3 from the last count
Reproducible in: 2021.3.40f1, 2022.3.37f1, 6000.0.10f1
Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested
Notes: Could not test on macOS Activity Monitor, as it does not provide information about GDI objects