Root motion retargeting for different skeletons

I’d like to know what is the proper way to retartget root motion when transferring animation between different skeletons.
Basically I’m looking for something comparable to unity’s mecanim retargeting quality.

Currently when trying to transfer animation between two different characters I get “sliding feet” problem, and root motion scales incorrectly regardless of the setting. That problem does not exist in unity mecanim.

Is there a proper builtin way to adjust root motion while doing animation transfer?