When they step into the box, use the node ‘SetTimerByEvent’ with a 5 second delay. Promote the output to a variable ( like MyTimer ), and connect the node to the open door event.
If they step out of the box before the door opens, just use the MyTimer variable connected to a ClearAndInvalidateTimerByHandle node to stop it.