The code below works perfectly, both in a sandboxed and non-sandboxed app:
DistributedNotificationCenter.default.post(
name: .init("com.apple.DownloadFileFinished"),
object: downloadURL.resolvingSymlinksInPath().path
)
where downloadURL is a URL to a file in the Downloads folder.