When Jessica leaves her father to go with her lover, she does not close the door. However, when she and her companions leave, the door must have been shut from within even though nobody is within.
When Portia says "Go draw aside the curtains and discover the several caskets to this noble prince.", the curtains are already lashed to the ceiling and the caskets are in plain sight of the prince. They are subsequently only drawn up a little bit more.