Please help me solve the problem with downloading images from the server

Please help me solve the problem with downloading images from the server, please tell me how I can download images (and create them in a scene) from my server programmatically. I’m writing my own plugin. What are the methods, what can and can not be done! The documentation is not very clear to me! I have an image url on the server, I want to make a figma image node.

Check out this example: figma-plugins/fetch-image at master · rsms/figma-plugins · GitHub