Door Sensor Automation

I have a sensor on a specific door and would like to have an automation that sends a persistent notification when the door is open. However, I do not need a notification if the door is (almost) immediately closed. That is why I want the persistent notification if the door is still open after 3 minutes.
How would I create such automation, preferably not in Yaml but in visual editor ?

Use the duration (aka for) property of the trigger.

Here's an example using a State trigger, but duration is also available for some other triggers.