Flesh out writeWindow/Tab methods.