When you define a door, you can use the command line to specify parameters:
Select objects:
Define opening position [Reference point / Attachment]:
Reference point
Indicate new reference point or [Specify distance]