There is no minimum distance!  Applications without an attic space, a vaulted ceiling or an open beam ceiling are quite common.  In very short spaces, the tubing may need to be modified to fit the space.  This can be done easily by cutting the tubing to the desired length.  Note that is recommended to have a straight tube run when installing into small spaces.