Declaration:  FocusWindow(Hwnd: Integer);
Gives focus to the window given by Hwnd

Source Code:

frm := newform(200,200, 'My Window');
frm.show;
focuswindow(frm.handle);  // not really needed here