While drawing a door/window, you can change the reference point to be on the wall bottom, top or axis with the Change Distance Point command. If you want, you can run this command by pressing the 6 key on the keyboard.

Location of Change Distance Point Command

You can access it from the ODT Door/Window toolbar.

Wall top

Wall bottom