Your examples are the exception of moving out, and emergencies. But to randomly walk in someones house its against the law no matter what state you live in.
Even given notice and your not there and they walk in, its breaking and entering. Someone has to be there when they enter for legality reasons. And if they walked in your apt when no one was there just cause they notified you then you are a victim to them.