@pike edvin and I have been advocating for MVVM style apps but every FX developer i worked with does what you're trying to do when opening dialogs
MVVM means that you're setting up some other accessible data structure (ViewModel) that both the setter and the guy on the other side of the modal can get to