Lua Code:
FCF_OpenNewWindow('YourChatWindowTitleHere')
I create all my chatframes with channels, titles, colors etc through an addon:
https://github.com/p3lim-wow/Inomena...aster/chat.lua
I made a function that creates the chat window (lines 19-31) which also clears out old channels etc and adds new channels to show as parameters to the function.
I then use that function on lines 40-49, and from there on I do some positioning and coloroing, as well as closing the combat log window (ChatFrame2).