Blender add-on in new window (pop-up window)

Hello everyone.
I want to create my first add-on for Blender, but I need your help. :frowning:
I create simple GUI app in Glade (PyGTK), but how is it interact with Blender I don’t know.

For example:
How to pass a mesh object from my application (window) to Blender?

You could:

write the data to somewhere like bpy.app.tempdir and then read from there with your app.

use sockets (?)

run python’s http.server.simpleHTTPServer.

share a connection to a database ( sqlite3.connect(somefile) )

… i don’t know

that should be enough to get the google searches started