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