Really? Is it such a big thing to knock? If you see a door is locked and the light is on do you not see that somebody is in there? If you aren’t sure the polite thing would be to knock especially if it was a bathroom or a persons bedroom. Because you are not only invading the privacy of that person but you are also making yourself look bad for invading their privacy in their personal space.