Add util for opening centered window (bug 1101002)