When I started working from home in earnest, I had to be really strict with the rest of the family about bursting into my office. They had to knock, then wait for permission to enter, and only then were they allowed to open the door. If they just barged in then they would be asked to leave. It took months to get them used to this idea.
It might sound unnecessarily pompous but really it’s just enforcing some basic courtesy.