Your comments

Invokes a dialog the default destination is the working tree root directory, that is Ia better idea.

When select multiple files, I just want to revert it to working tree, So I sugguest to add a menu to revert to working tree, no need to invokes any another dialog.