How to reproduce:
1. Open the attached project "Undo.zip"
2. Open the "SampleScene" Scene
3. Open the "New VFX 1" Visual Effect Graph in the Assets folder
4. Select any node
5. Undo the selection (command + Z)
Expected result: The Visual Effect Graph Editor's window doesn't become dirty
Actual result: The Visual Effect Graph's Editor window becomes dirty
Reproducible with: 2022.1.0a16, 2022.1.0b15, 2022.2.0a10
Not reproducible with: 2019.4.37f1, 2020.3.33f1, 2021.2.19f1, 2021.3.0f1, 2022.1.0a15