If $I$ is an ideal of $R$, I would need to use something like
MatrixSpace(I, m, n)
However, the above doesn't work because $I$ is not a ring. How can I get all the matrices with entries from a specific ideal? Or even more generally, matrices with entries from a subset?