Migrate the 3D slicer to my own program

Can I migrate the 3D slicer view and measurement functions directly to my own Python program? If I can, what information do I need to learn or check

Is there anything unclear or unanswered from your original post in January (linked below)?

Yes, in my post in January, I got the reply that I can write modules in Python in 3dslicer, but what I need is to migrate some modules of 3dslicer to my own Python program. For example, when I run my own code, a window program similar to 3dslicer will be displayed