According to the sparse documentation, custom render engines are the most future-proof way of customizing the internal blender panels. Unfortunately, even then, we must do some metaprogramming hacks...