Writing to the Document Window