I wouldn't either...
Grant in Iowa
As a woodworker who got his start building dozens of subwoofers for people, I know a thing or two about combining cabinets and subs.
Here are some considerations:
-While it is true that the frequencies that emanate from a sub are non-directional, it is NOT true that room placement has no effect on a subs performance. For example, a subwoofer in a corner will sound very different from one in the center of the room. Often, you can improve the overall sound and balance of a system by moving the subwoofer a short distance within a listening room.
-A subwoofer is often designed to be placed directly on the floor. This allows the low frequencies to benefit from coupling directly to the plane of the floor.
-The port, or ports on your average home theater subwoofer should be about 2 feet or more from an adjacent wall or significantly sized plane. Closer will likely cause a peak in the speakers response at some point and thereby degrade fidelity.
-Rattles can be an issue, though that can be minimized with a robust structure.
In closing I'd like to say that due to the transitory and quickly changing nature of home theatre, I would try to design the unit to have more than one function, lest it be viewed as a finely crafted console TV cabinet in the future.
All of that said, I HAVE indeed incorporated a sub into a commissioned piece I did a few years ago and the customer is very happy. It really comes down to the customers priorities and if fidelity is more important than aesthetics. In that unit, I built the area for the sub quite robustly. I used 1" BB ply for the back of that compartment and screwed it into place. Wiring for the sub went through a 1" hole, and I made a piece of open cell foam that fit tightly into that hole with a small hole in the center for the signal cable to go through.
It can be done, but consider if it should be done, and if the appearance of the space is more important than the fidelity to you.
FWIW,
Grant in Iowa