How is that different from a glass house or normal agriculture?
A normal piece of farmland or glass house captures all sunlight falling on its surface for the produce that grows on the same surface, ratio 1:1. If you were to use sunlight falling on the vertical farm with 5 floors, it would have to divide the sunlight over more surface, ratio 1:5, so there is less sunlight per surface.
Solar panels + lights together are a system for redirecting energy, and the efficiency “loss” is inconsequential. You can simply cover an adjacent area 10x the size to provide the extra sunlight.
But then why not cover the adjacent area with crops and sod the vertical farm, solar panels, grow lamps, wiring, and all the costs, construction time, maintenance work, etc. and just have a farm?