I prefer a handgun over a long gun for home protection.
But, to answer the question. I would answer the door, but I'd have my 12 ga. shotgun with me, rather than a handgun.
As others have said, not everyone is out to get you. It could be a person in dire need of help.
Given enough time, I'd probably go out the back door, and approach the front door on my own terms.