You definitely need to consider the effects of these things on your computer...
That being said, in response to the question you asked...
Route/drill a hole from the top of the panel, place the magnets in there, then fill the hole with Bondo or something similar. Sand, finish.
If you've ever screwed around with these things, you know their strength and that even with superglue or something like that, it's going to rip itself off over a short time. Heck, I have some in my office and I can't pull them off the filing cabinets without sliding them to an edge.