I'd suggest not to use `default` mode when there's a way to use standard modes.
That'll make applying templates much faster, give possibility to redefine some parts of the template and avoid copypaste.

Make the block invisible by default and set `_visibility` to `visible` when it should be shown. Then the template will be just like this:

``block dialog-window, content: [ /* ... */ ]``