Map the source
Mark the receiver on each side of the door. Locate the frame where the shadow first touches the boundary and the frame where it leaves.
Choose the shadow layer
Preserve the source shadow where the new silhouette agrees. If shape changes, align a separate shadow layer to the light and the edited foot contact.
Review at speed
Passing the shadow through a wall as one flat silhouette changes the scene even if the face looks right.
Pass condition
The cast shadow stops or changes surface at the original doorway and stays tied to the new person.