Ummm...NO.
Full code is
here under §571.108.
Technically, all aftermarket lighting solutions that are not offered as an option on the original vehicle are illegal. NHTSA has made that clear.
Slapping a Xenon bulb in a projector housing that was not designed specifically for that bulb is definitely not approved. Did you read any of the stuff on the Daniel Stern site that directly discusses this problem?
Realistically, if you want a "street legal" lighting solution for the F150, the
closest you can do is take an approved headlight system from another vehicle and do an impeccable job of retrofitting it to your truck. While not technically legal, if properly installed, aimed and adjusted for the height of the Raptor...you should be able to meet all of the photometric test point values for upper and lower beam systems. You will not meet the DOT marking requirements and other material requirements but should be able to meet the performance requirements. That would be the closest and safest you'll come to a "street legal" HID Xenon solution for the Raptor. It is unlikely that anyone would be adversely affected by such an installation and law enforcement would possibly listen to your argument. You'd still be breaking the law but realistically you'd probably not have a problem.
Just my researched opinion.