in reply to tkx waitWindow

Maybe this will be of assistance? :) This node suggest to possibly raise or withdaw instead of destroying it. Looks like you could at the very least get some ideas from it.