Returns a pointer to an identifier of a layout related to a specified viewport from the specified database.
If a layout related to the specified viewport is not found, a NULL pointer is returned.