Retrieves the viewport index.
A 32-bit integer value that contains the index value.
The index value returned by the method can't be modified in the calling subroutine.