You should use our standard login window (with Element type Login Control) and then after login you should redirect to your custom function.
Our built-in login mechanism will cover both customer and user login.
The above applies to the window when it is opened for the first time. If the window is already open and I choose Window/Restore Position, the window takes the correct position. Namely, the upper left ...