Set dialog owners to VS window

Fix #881.