Adding decorative trim/piping to a premade pillow?

Adding onto what others have mentioned, You could make your own piping that is a finished loop with no flange and hand stitch it down.