I can't find it built in to VS Code, but the Restore Editors extension does this, although you have to name the layout.