Place it at the very start of a scene break, before the camera reveals who is supposed to be outside. Follow the reaction beat with a sitcom laugh track for comedy versions, or swap that follow-up for a police siren when the prank needs an official escalation.
About this sound
This clip is a realistic door knock effect built from three firm, evenly spaced raps on wood with no music or background noise behind them. It feels tense and expectant, because listeners instantly brace for an arrival, an interruption, or something unsettling waiting on the other side.