Creating new tabs on demand now fully works, and switching between them gives focus to the text area.