The UGF uses the substrate (gravel) as the filter media. With an air driven UGF, the water in the lift tube becomes less dense than the water outside the tube. Since water seeks its own level, the water in the tank will flow down thru the substrate, under the plates, and up the tubes, back out into the tank.
This flow can be increased by having a powerhead on the lift tube, to pull a greater volume of water thru the substrate. Or by connecting a HOB/cnaister suction to the lift tube.
The use of the UGF requires a regular schedule of gravel vacs to keep the substrate clean.
The trend lately is to run RUGF (reverse ugf). In this type, a powerhead is connected to the lift tube so it's discharge is pushing water down the tube, under the plates, and back up thru the substrate. Or by taking a canister discharge to the tube.
This still utilizes the substrate as media for the biological filtration and pushes debri out of the substrate, into the water column, to be removed by mechanical filtration.
The gravel depth varying does affect the flow, but I do not think it is really a concern.