Can we render something on a mtkview below a window?

I'm trying to upgrade my opengl based video render to metal based one. While using opengl, the following codes can achieve the effect that it is rendered below the window.


GLint order = -1;

[[self openGLContext] setValues:&order forParameter:NSOpenGLCPSurfaceOrder]; //self is an NSOpenGLView object



Is there a similar method to achieve the same effect while rendering to a mtkview? My intention is to make the other UI elements on the window stay above the video and become visible. The mtkview and other UI elements(e.g. a button) are of the same level in the view hierarchy.