(1) Analytic geometry was invented by Descartes. Ancient Greeks studied geometry by drawing with straightedge and compass.
(2) Perspective was developed by Renaissance painters and mathematized by Desargues and others in the XVII century. Before that, people couldn't properly represent 3 dimensional figures.
But, for example, last three books in Euclid's Elements are about solid figures. In modern versions of the book, I see figures that I don't think were possible in the time of Euclid.
So, how did ancient Greeks study solid figures?

I think you might have made some implicit assumptions that aren't necessarily accurate.
For (1), you can actually do a lot of 3D geometry using straightedge and compass in appropriately chosen construction planes. You mention the last three books of Euclid, did you see how he constructed the 3D shapes in the text? The diagrams are mostly just guides anyway, and I'm not certain the original even had many. You were expected to go through the constructions and make your own.
For (2), that seems a little strong. Perspective in art was figured out later, but why is that the only 'proper' way to depict 3D images on a 2D medium? The Greeks understood orthogonal projection, and that is a very good way to display a 3D object, it's still used today in technical drawings. https://www.britannica.com/technology/orthographic-projection-engineering
And why are you assuming that they must have drawn their 3D shapes. People have been making 3D models for a very long time. https://www.georgehart.com/virtual-polyhedra/neolithic.html
My favorite Greek proof in 3D is Archytas' doubling of the cube (https://lsusmath.rickmabry.org/rmabry/live3d/archytas1.htm), which constructs $\sqrt[3]{2}$ by intersecting a cone, a cylinder, and a torus. It shows a skill at visualizing and understanding 3D shapes and their interactions that I don't think most mathematicians today could match, myself included, given the constraints (no algebra, no analytic geometry, no computer graphing...).