Animator play in edit mode

Something like this works in play mode, but does not in the editor:

   _animator.Play(_currentAnimatorStateInfo.nameHash, -1, 0.5f);

Can I make something like this to work in the editor? Specifically, in play mode, I do _animator.speed = 0; and the line above with different values to simulate stop-motion animation.
Thanks in advance.

As far as I know, You can use AnimationMode.SampleAnimationClip method or manually call Update method of the animator component.

This might help