To have a N54 engine in a non BMW chassis will take some effort but can be done. I'm actually working on a wrecked N54 (Not mine) for racing purposes.
There are some challenges like the EWS (Electronic steering lock) and the keys.
Also you have get rid of all the not longer applicable options from your VO.
BMW 335 E92 08 - Full options - RIP
BMW 335 E92 09 - Full options - DKG - Procede Rev 3 - Vishnu Meth and Chargepipe - Forge Diverter Valves - Vishnu Flex Fuel Kit- AR Catless DP - Afe Intake - Helix IC - Ar Oil Cooler - PPK Water Cooler - M3 Suspension - JRZ RS1 Shocks - Eibach Pro Springs - Drexler LSD - BMW IS Exhaust - EBC Yellow Brake Pads - Stainless Steel Brake Lines - M101 Wheels - Michelin PSS - M-Tech Body - M-Strutbar