If you want to go at it programmatically:
Carbon is old 32bit API that was developed to aid porting in mac os 9 days. C interface but deprecated long time ago. Not recommended by Apple.
The modern way is to use Cocoa for UI (window and input) which is only available through Objective C or Swift. Pretty easy to and starting an XCode project will setup most. If you are ok with objective-c but don't want to do xcode, google "nibless cocoa" and you can find some resources for how to open window.
If you want to avoid xcode and you want to stay in C/C++ you can find some resources googling "cocoa opengl c++". You'll find resources like
Objective-C Runtime Reference which is the API for interfacing with objective c without programming in objective c.
I've mostly done research so far, and don't have any working code. If you come any further, please share.