Can you have window creation code within a library
===

I'm making a library that will act as a graphics aid, and one of the things I wanted to add was it's own window creation.

I've seen how people use the default windows code in a windows application, but that would only work in that project not the library.

Is it even possible to add in window creation code into a library and have it behave in such a way like...

windowClass instance = libraryCreateWindow(blah,blah);

instance.showWindow();