Assuming a 2-code door sensor…
A simple automation that triggers on door close, and waits for the door to open. If it doesn’t open it sounds a buzzer. Variations on this are endless.
Nothing to do with a blueprint at all, however, so not quite the right topic to get good answers.
The closest thing I know of would be adapting my blueprint, it sorta does that, with a bit of tweaking…