guiconfig
You can use the guiconfig command to toggle a chat window on or off.