(xdialog_show): New function to handle the display of dialog boxes.