State restoration? SceneStorage equivalent

What’s the “best practice” for SwiftUI scene state restoration? I have a multi-window (multi-scene) app with lots of RealmSwift usage/bindings to views. How should I restore for instance a List with a selection property that is currently a Realm object (via optional @State)?