I haven't had an imaginary friend myself, but I think they can be helpful for kids. They can help kids be creative and understand their feelings better...
I had imaginary friends as a child. I don't remember their names though. But, because one of my hobbies is creative writing, I do find comfort being friendly with the characters I throw into chaos!