How to prevent a GUI in plug-in to open multiple times?

I make good progress to create a plug-in. I use a GTK dialog for user interaction. Now I found that there seems to be nothing in place to prevent the user to open my plug-in as often as he wants. Is there a simple way to stop this? Maybe focus the existing dialog instead of opening it again?