OptiPlex's are configurable, and usually in various form-factors.
Which CPU/RAM/HDD setup is it? And what form-factor (the smaller form factors struggle to support any decent GPU's in size, and the PSU is generally proprietary so cannot be *easily* replaced)