To register a custom location you need to pass a key to the paths array.
e.g.:
add_filter('timber/locations', function ( $paths ) {
$paths['some_key'] = [
$dirPath . '/views',
//add more paths if needed
];
return $paths;
});
For further details, see the Timber 2.0 Docs