Hi Mathias, thanks for pointing me to the right direction.
I have created a Feature request and included a PHP class and PageTS config as an example of what I was able to create using the BeforeFileAddedEvent listener. Maybe something like that can be included in future TYPO3 versions…