It was unfortunate when I moved my ~/Library/Mail/V7 to my new MacBook Pro; the “On My Mac” folders weren’t migrated. This article helped me import “On My Mac” folders into Mail.app; and into an Import folder. I wonder if there was any benefit to move the folder since I use IMAP.