I want to open the animation preview in editorwindow

hello When I put an animation clip in the field in the editorwindow, I want to open a preview where the animation clip plays. I tried many things but it doesn’t work. In summary, I want to display a playback preview in the editorwindow when I click on an animation clip.