DIM hWindow AS Window

hWindow = Windows [ Id AS Integer ]

Возвращает окно по его X11 идентификатору.