Swift source code implementing drag and drop and more, to accompany the main article.
NSItemProvider
Implementing a basic drag-and-drop app for macOS using SwiftUI: the DropDelegate protocol, and working with NSItemProvider. With full source and notarized example.