you have 2 options
both can be found in the preferences under windows>initial
you can check the box that says auto-minimize the chat window on creation (but for some games it'll still pop you out)
so I use the second option of hiding and notifying in the system tray. It does it all the time (instead of just away) but I've gotten used to it and just leave it like that all the time now