Rapping on a door or window might be done to get attention of someone inside.