NSGraphicsContext needs to be marked with [ThreadSafe] since CurrentContext returns a context that is valid for the current thread. Also register NSPrintPreviewGraphicsContext or it won't be possible/easy to use the context for the print-preview. ref: desk #30220