Can I use unreal as an external library?

I’m also interested in this feature, so is there any example,or more detailed document about it?