khn: Add SWP_RESTORE flag

Restore to a normal state from a minimized state.
khn: store a window position at destruction of a frame window