Do you want to get the lat/lon values for x/y pixel coordinates?
How do you get the x/y coordinates?
In the desktop application, you can draw a polygon. Afterwards, you can select from the context menu of the view ‘WKT from Geometry’
Could you describe your use-case and your intended workflow a bit more? It is difficult to give a suggestion without knowing what you want to do.