How can I create multiple dialog boxes

I have a split window. In this the left part is a Dialog box and right side one is for OpenGL view.

When I choose some option (eg.clicking button ‘ok’) on the dialog box, I need get a new dialog at the same place. The dialog box should not looks likes the one, which overlaps on the old dialog.

Any help
thanks