The opening and close of the `Dialog` can be controlled with your own state. The `onOpenChange` callback will provide the hints for the state and triggers based on the appropriate event.