After the Author @GerryXu instructor, ProUITreeColumnCreate work as expected.
Write down the solution for everyone who suffers from the error to refer to.
Edit .TreeAttributeWindow attribute to True in resource file. so that, the api can work as expected.
p.s. This attribute is not displayed in Creo UI editor and cannot be set by api.