Application on the top of DraftSight.

I need some 2D basic capabilities in my application . Can I Build my own application on the top of DraftSight?  It means: Can  I customize toolbars, menus... using API, can  I use it like an 2D engine for my application ?

Ideally , I would like to integrate Drafsight drawing area in my application ,and show to the users some of Draftsight functions.

 

Is that possible using the API ?  Is there some examples of such application ?

 

thanks.