There is this beautiful single-header library to write simple graphical programs in C, portably to standard unixes, macos, and windows:
https://github.com/ColleagueRiley/RGFW.git
It was discussed recently around here: https://news.ycombinator.com/item?id=42217535
The macos backend is a neat hack, written in pure C.