I've tried this on MacOS 13.6.7 with Qt 6.7.2 without luck.
I created a custom QWidget and get the `winId` (an NSView*), for which I can configure the CAMetalLayer using this:
```
CAMetalLayer* metalLayer = [CAMetalLayer layer];
[view setWantsLayer:YES];
[view setLayer:metalLayer];
```
I can then set the `metalLayer` as the compatibleSurface in the adapter options.
To render I overwrite the paintEvent() but nothing gets rendered. I also see a warning on my console:
` CoreAnimation: setting `contents' on CAMetalLayer may result in undefined behavior` - unclear where that is coming from.