The description of the Dimension Door spell includes:
You can bring along objects as long as their weight doesn’t exceed what you can carry. You can also bring one willing creature of your size or smaller who is carrying gear up to its carrying capacity.
My example of this is: a villain kills one of the good NPCs. Can that villain take the body with them through a Dimension Door spell?