Thank you. I'll study it.
You need to realize that a script dialog is not a palette while the script is displaying its dialog the script is in control and its waiting on your interaction. All you can do in Photoshop at this point is use the dialog. If you want a palette type panel you need to create an extension panel.