There are a number of limited, extradimensional spaces, for example the ones created by demiplane, a bag of holding, or a portable hole.
Say you are in a closed portable hole, bag of holding or demiplane, and cast "Dimension Door, 100 feet straight ahead", what happens? Would it make a difference if the door on the demiplane was still there, or the hole or bag were open?