Dynamical Casimir effect in a designed leaky cavity