Open detail view as dialog declaratively

Hello

How can I open detail view as dialog / modal declaratively in Jmix 2.2.3? If it’s not possible, what should be the best approach to do it programmatically?

For actions in descriptors you can add property openMode

                <action id="create" type="list_create">
                    <properties>
                        <property name="openMode" value="DIALOG"/>
                    </properties>
                </action>

To open programmatically:
https://docs.jmix.io/jmix/flow-ui/opening-views.html#dialog-windows

Thanks for the prompt response. I really need to start looking at Jmix UI designer, I always stick to code otherwise I would have figured it out.