There's no law against being naked in your own house.
You may legally answer the door naked provided you stay inside your house.
But it won't make me or any other cops go away. And if I/we arrest you for whatever crime I/we are investigating, you will go to jail naked if you don't get dressed when I request you to do so.