Event triggered pop up windows in Lovelace

I have two use cases, that is more or less the same.

  1. When my doorbell (RING doorbell) is activated, I want the camera feed to pop up in a new window and show the live view of who is at the door, and then close again when the doorbell goes inactive again.

  2. When my alarm system is activated in “armed home” state, I have a 15 minutes timer starting before all lights are turned off. I would like to have a pop up windows displaying that timer, and then close it when the timer is finished.

I use Lovelace, is there any support or way of popping up a new windows displaying an element and them close it again from a automation or in Lovelace?

Thanks, seems to be exactly what I am seeking. Will test as soon as I get home.

/Martin