Open a new window and write a text/html document into it