Use -windowForSheet instead of the first window