This is not a good example of what happens in America in general, since the position of the Bush administration was that Guantanamo Bay was outside of US legal jurisdiction. It was considered a alternative to the US court system.
https://www.newyorker.com/magazine/2014/10/06/before-the-law
As I understand it the basis legally is about Guantanamo bay not being formally part of the US, and therefore not subject to the constitution or regular law. Military law probably applies, although I'm not 100% on this.
And that’s the problem. The government “deciding” that Guantanamo is a special jurisdiction to do whatever they want.
Not sure why your innocent framing justifies it?
Then the next logical step is to declare Detroit outside of US legal jurisdiction. This will solve a lot problems. /s