I believe the knob is on the other side of the door and the scarf goes over the top of the door.
I think you can figure it out from there.
The trick is to figure out who slams the door. Was it the newly-deceased or someone that "assisted"...