One of Santa Cruz's designers has an SV650 with a bike rack on it.
It wouldn't be at all hard to do tbh, if you can weld or know someone to weld it up for you. But, it's still not going tobe all that practical- you don't just need to carry the bike but also all the assorted Bike Crap, and when you get there you have to do something with all the assorted Motorbike Crap. Helmet, leathers and boots take up a huge amount of space.
Also changing back into the motorbike stuff while sweaty and muddy isn't a barrel of laughs.
So what you'd want to do is, mount it inline on the back, wheels off. A bit like on that Monster up the page, only a little more vertical to lower the centre of gravity would be a good idea. Mount the wheels up alongside the frame for compactness. And use 2 big (big) panniers. It won't massively affect the ride- the actual weight isn't massive, less than a pillion.
There'll be no legal concerns with this approach as long as it's safely mounted.
But I have to say, I thought it was a sufficiently hassly idea not to do it even whenI had no car licence. Buying a motorbike with the plan of using it as a load lugger doesn't seem like a good idea to me. And this is from someone that used to do things like this:

(that's 10 6-foot loft insulation boards)