I have created UI Toolkit view for particular file types, preview of sort. Now I want to update my view when user select some file in Project tab (i.e. selecting some texture in project tab and I should show it in my UI Toolkit tab). The only way I see right now is to create file explorer in my view which seems too much and I don't want to do this.
How I can do this? Where to register/unregister (in case window is closed) this callback for my root VisualElement and get file path?