So the same untitled file is opened in two windows.
I could only repro this with an empty window:

Moving this to @aeschli as the last who touched this code.
@aeschli for some reason the emptyToRestore array has multiple entries for the same window?
Temporally until update is not yet, for prevent backup window add to settings "window.restoreWindows": "none"
When set "window.restoreWindows": "all", then every close & start VSCode will multiple windows (1 -> 2, 2 -> 4, 4 -> 6, and so on).
Fix is needed ASAP.
@aeschli this change is not in the recovery build yet pending https://github.com/Microsoft/vscode/pull/70180 right?
Pushed.
I saw this by downgrading from 1.32.2 to 1.31.1, then upgrading back. But I don't think we care about that.
@bpasero I can confirm that this issue is fixed in the latest 1.32.2 release! Thanks!
But another one what I noticed:
All tabs should re-opened (Tabs/files from Step 2., 3. and 7.)
Only the unsaved file from step 3. and the one from the Windows Explorer, step 7. are opened.
And the last session (int this example, file from step 1. is lost!
Is this wanted or can this be configured?
Confirm fix and also above bug with 1.32.2 and 1.32.3. Could You report this as new issue?
Now session is partially broken :-(
@SylwesterZarebski thanks. Please see #70755
Most helpful comment
Temporally until update is not yet, for prevent backup window add to settings "window.restoreWindows": "none"