Left Click on Close Button Hold Time

Hi, I am not sure how to word this question.

I wonder if there is a way to left-click on red button but trigger only if I wait for a time, like 1 second or so. Is there any can give me a clue, please?