How to save output figure GEOTIFF format with appropriate Coordinate Reference System (CRS)?

Is it possible to save GMT output figures with custom CRS in GEOTIFF format?
So It can be used in GIS software easily.

See e.g. psconvert with the -W+g option, https://docs.generic-mapping-tools.org/dev/psconvert.html.