Implement ShadowResources.openRawResourceFd.

Closes #900.