UI Toolkit - Save/Load TreeView

Hi, is there a recommended way to save/load a TreeView’s state at runtime?

I see that the itemsSource provides an IList of item wrappers which could be saved, however an IList> is required to set the state..

There is no way to go from a visual element to a TreeView. VisualElement are not serializable and there is no way to generate TreeView at runtime as we rely on the assetImporter to create them.