I would like to draw a diagram of an electrical transformer in the perspective view but I don’t know how to do it.
I saw that in vision we can draw lines and circles but not in perspective. That’s why I’m asking for some help.
There are no drawing tools for perspective. You’ll need to make an SVG in something like InkScape and then import it.
You can also search the web, someone has probably already drawn it for you, or at least close to what you need. One example, Electric Components Library
As stated, you can use Inkscape to draw and edit SVGs.