How exactly do I get zoom level in GUI?

Yes it does.
Knowing the (x0,y0)-(x1,y1) coordinates of the image region that is previewed on the preview widget is actually linked to the zoom level.