> It never occurred to me that this was a possibility
Yes, it's viable. I do it for my companies projects in addition to dual-licensing under the GPL. See "The unit tests and Unicode data generators are not public. Access to them is granted exclusively to commercial licensees." [1].
[1] https://github.com/railgunlabs/unicorn?tab=readme-ov-file#li...