The %LastWindowID% token returns (v10.0+) the window ID of the last Keyboard Maestro Engine window opened by this macro.