Hello,
Just wanted to note that modifying warning.js is possible if you're forking Blockly, but the core team strongly recommends against forking. Forking makes it harder for you to keep up with releases, get the latest features of Blockly, or use plugins. Instead the core team recommends requiring Blockly via NPM.
Also note that while drawIcon_ is technically protected, I wouldn't recommend overriding it. The icons were never designed to be modified/subclassed/etc. So while overriding drawIcon_ works right now, if the core team ever decides to refactor icons to make them more extensible, it may not work in the future.
So all that is to say that the core team doesn't have a great way of doing what you want to do right now. And given that, there may be future maintenance costs if you decide to override things in icons.
Sorry that's not a great answer :/ But I just wanted to give you a heads up.
Best wishes,
--Beka