Our webcomponent should have the two methods openModal() and closeModal() that change the visibility state.
openModal()
closeModal()
This usage should be possible: