H&K once developed a vehicle-mounted solution that allowed an MP5 to be fired from inside a vehicle through a specially designed ballistic-glass mount.
The result was the ball mount socket secured into the glass, allowing the weapon to lock into position while still providing a limited range of movement. When the MP5 was removed, the mount could be sealed with a rubber plug.