Empty the drawer and measure the width at the front and back. Measure the depth on both sides before cutting your liner.
For an odd shape, fit a sheet of paper inside and crease it along the edges. Test the paper before tracing onto the purchased material.
Cut a little at a time and lay the liner flat. Check the corners stay down as you return items to the drawer.