Merge "Preventing TaskSnapshotWindow crash from resized." into main