I would complain to both the restaurant and to Door Dash, to alert them that one of their drivers was this rude.
If I can’t be guaranteed this driver would never bring another one of my orders, I would just stop doing business with that restaurant.
If a delivery driver ever made such remarks to me, I would presume he was casing my home for a future robbery.
If that guy was indeed a Doordash driver. they should have been reported, and they would certainly be deactivated for talking back to a customer that way.
As a Doordash driver myself , I wouldn’t even think of talking to a customer in a rude tone of voice even if the customer was rude to me. I guess I was brought up in a different time.
IF I were casing your house, I would be very gracious and friendly so as not to alarm you.