While creating custom widget with PtCreateWidget and PtRealizeWidget, the widget is not visible on the window
So there is something wrong with your widget possibly? You might want to try something very simple to start with. Create a new widget as a child to an existing widget, but add no new features and see if you can realize it on the screen.
Did you register your drawing-function(s) within your widget? (Pointer to Function)
My custom widget can easily be created by draging and droping from the widget box but only while creating and realizing it through PtCreateWidget & PtReallizeWidget there appears a white dot at the top left corner of the window