
It is reported from Sayyiduna Abdullah bin Bishr:rahm: that Rasulullah:saws: said: "Do not stand in front of doors of houses (you visit) but (rather) stand on either side of the door to seek permission for entry. If you are permitted then enter into the house otherwise return."
It shows we must not inconvenience anyone by blocking the doorway, and if you'r not allowed in then leave. That is basic Islamic etiquette:alhamd:.