Updates to TextTabWindow and created TextDocument (may not be
necessary).