If an AC system is designed to keep liquid refrigerant out of the compressor, will the compressor be ok if installed upside down? It should only be dealing with gaseous refrigerant, but I don't know if there is something in the pump design where orientation matters. I know if you invert something like a complete window AC unit and try to run it, things will go boom when liquid hits the pump.
No, a typical fixed-use AC compressor will NOT work properly in any orientation but upright.
Most designed have a sealed can containing the compressor itself with an electric motor driving a crankshaft to which a connecting rod is attached which drives the pump. The bottom of the can is filled with lubricating oil for the bearings on the shaft and connecting rod.
If you invert the unit the oil will go to what is normally the top of the can and will not lubricate the mechanicals properly.
Here is a diagram that shows the basic layout of the parts: