You can set a border radius, select an existing gradient.
Plug-in will paint a border using the selected gradient and border-radius.
Plug-in menu location:
Python-Fu/Selection to Gradient Border...
Sample result from a selection:
You also might be interested in creating Open Loop Selection Trick Tutorial that uses this plug-in as example to create an opened loop selection (which produces something like below image).