Solved at the Sketcher the problems with mapping between the OpenCascade window and the Windows forms. Now the content fits properly the window, the grid is rendered properly and is rescaled when the window is rescaled.
Solved the problem at dragging a line by grabbing the markers. The line can be dragged. The operation needs further improvements to make it faster and easier to use.