You'd normally use a router to get the edge, as sanding won't give you a consistent corner, but you can't rout MDF very easily, so preformed is always best.
Having said that, if there's any chance whatsoever of your window boards getting wet (as in with tilt and turn windows leaking internally) then go for wood instead.